﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace HAILN_Y2016CS32ONLINE.Structure_Program.Demo
{
    public partial class while_demo : Form
    {
        public while_demo()
        {
            InitializeComponent();
        }

        private void while_demo_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            int icount = 0;
            while (icount < 10)
            {
                listBox1.Items.Add("icount=" + icount);
                icount++;
                
            }
        }


    }
}
